package com.efast.dmom.aps.bean;

public enum RestType {
	上班("上班","上班"),
	休息("休息","休息"),
	会议("会议","会议"),
	吃饭("吃饭","吃饭");
	
	private String name;
	private String nameKey;
	
	
	private RestType(String name, String nameKey) {
		this.name = name;
		this.nameKey = nameKey;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNameKey() {
		return nameKey;
	}
	public void setNameKey(String nameKey) {
		this.nameKey = nameKey;
	}

	public static RestType getValue(String name) {
		  for (RestType c : RestType.values()) {
		   if (c.getName().equals(name)) {
		    return c;
		   }
		  }
		  return null;
		 }
	

}
